// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_activity.p_view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.LinearLayout;
import com.nnee.p_fk.cls_k;
import com.nnee.p_pr.p_activity.a.d;

// Referenced classes of package com.nnee.p_pr.p_activity.view:
//            br, ai

public class cls_pageList extends LinearLayout
{

    public cls_pageList(Context context)
    {
        this(context, null);
    }

    public cls_pageList(Context context, AttributeSet attributeset)
    {
        super(context, attributeset);
        d = context;
    }

    private void a(View view)
    {
        if(b != view)
        {
            if(b != null)
                b.setBackgroundDrawable(k.a(d).b(0x7f020027));
            if(view != null)
                view.setBackgroundDrawable(k.a(d).b(0x7f020029));
            b = view;
        }
    }

    static void a(pageList pagelist, View view)
    {
        pagelist.a(view);
    }

    private void c()
    {
        int i = a.getCount();
        int j = 0;
        while(j < i) 
        {
            View view = a.getView(j, null, null);
            if(j == 0)
            {
                b = view;
                view.setBackgroundDrawable(k.a(d).b(0x7f020029));
            }
            android.widget.LinearLayout.LayoutParams layoutparams = new android.widget.LinearLayout.LayoutParams(-2, -2);
            if(j != i + -1)
                layoutparams.rightMargin = 12;
            else
                layoutparams.rightMargin = 0;
            addView(view, layoutparams);
            j++;
        }
    }

    public void a()
    {
        if(b != null)
            b.setBackgroundDrawable(k.a(d).b(0x7f020029));
    }

    public void a(int i)
    {
        (new cls_br(this, i)).run();
    }

    public void a(cls_d d1)
    {
        a = d1;
        removeAllViews();
        c();
    }

    public void a(cls_ai ai)
    {
        c = ai;
    }

    public d b()
    {
        return a;
    }

    private cls_d a;
    private View b;
    private ai c;
    private Context d;
}
